﻿using System;
using MoonSharp.Interpreter;
using SizeboxUI;
using UnityEngine;

namespace Lua
{
	// Token: 0x020002F1 RID: 753
	[MoonSharpUserData]
	public class Input
	{
		// Token: 0x170002AC RID: 684
		// (get) Token: 0x06001216 RID: 4630 RVA: 0x00080B9F File Offset: 0x0007ED9F
		public static bool anyKey
		{
			get
			{
				return !GameController.Instance.paused && GameController.Instance.view.mode != MainView.Mode.Edit && Input.anyKey;
			}
		}

		// Token: 0x170002AD RID: 685
		// (get) Token: 0x06001217 RID: 4631 RVA: 0x00080BCC File Offset: 0x0007EDCC
		public static bool anyKeyDown
		{
			get
			{
				return !GameController.Instance.paused && GameController.Instance.view.mode != MainView.Mode.Edit && Input.anyKeyDown;
			}
		}

		// Token: 0x170002AE RID: 686
		// (get) Token: 0x06001218 RID: 4632 RVA: 0x00080BF9 File Offset: 0x0007EDF9
		public static Vector3 mousePosition
		{
			get
			{
				return new Vector3(Input.mousePosition);
			}
		}

		// Token: 0x170002AF RID: 687
		// (get) Token: 0x06001219 RID: 4633 RVA: 0x00080C05 File Offset: 0x0007EE05
		public static Vector3 mouseScrollDelta
		{
			get
			{
				return new Vector3(Input.mouseScrollDelta);
			}
		}

		// Token: 0x0600121A RID: 4634 RVA: 0x00080C16 File Offset: 0x0007EE16
		public static float GetAxis(string axisName)
		{
			return Input.GetAxis(axisName);
		}

		// Token: 0x0600121B RID: 4635 RVA: 0x00080C1E File Offset: 0x0007EE1E
		public static float GetAxisRaw(string axisName)
		{
			return Input.GetAxisRaw(axisName);
		}

		// Token: 0x0600121C RID: 4636 RVA: 0x00080C26 File Offset: 0x0007EE26
		public static bool GetButton(string buttonName)
		{
			return !GameController.Instance.paused && GameController.Instance.view.mode != MainView.Mode.Edit && Input.GetButton(buttonName);
		}

		// Token: 0x0600121D RID: 4637 RVA: 0x00080C54 File Offset: 0x0007EE54
		public static bool GetButtonDown(string buttonName)
		{
			return !GameController.Instance.paused && GameController.Instance.view.mode != MainView.Mode.Edit && Input.GetButtonDown(buttonName);
		}

		// Token: 0x0600121E RID: 4638 RVA: 0x00080C82 File Offset: 0x0007EE82
		public static bool GetButtonUp(string buttonName)
		{
			return !GameController.Instance.paused && GameController.Instance.view.mode != MainView.Mode.Edit && Input.GetButtonUp(buttonName);
		}

		// Token: 0x0600121F RID: 4639 RVA: 0x00080CB0 File Offset: 0x0007EEB0
		public static bool GetKey(string name)
		{
			return Input.GetKey(name);
		}

		// Token: 0x06001220 RID: 4640 RVA: 0x00080CB8 File Offset: 0x0007EEB8
		public static bool GetKeyDown(string name)
		{
			return !GameController.Instance.paused && GameController.Instance.view.mode != MainView.Mode.Edit && Input.GetKeyDown(name);
		}

		// Token: 0x06001221 RID: 4641 RVA: 0x00080CE6 File Offset: 0x0007EEE6
		public static bool GetKeyUp(string name)
		{
			return !GameController.Instance.paused && GameController.Instance.view.mode != MainView.Mode.Edit && Input.GetKeyUp(name);
		}

		// Token: 0x06001222 RID: 4642 RVA: 0x00080D14 File Offset: 0x0007EF14
		public static bool GetMouseButton(int button)
		{
			return !GameController.Instance.paused && GameController.Instance.view.mode != MainView.Mode.Edit && Input.GetMouseButton(button);
		}

		// Token: 0x06001223 RID: 4643 RVA: 0x00080D42 File Offset: 0x0007EF42
		public static bool GetMouseButtonDown(int button)
		{
			return !GameController.Instance.paused && GameController.Instance.view.mode != MainView.Mode.Edit && Input.GetMouseButtonDown(button);
		}

		// Token: 0x06001224 RID: 4644 RVA: 0x00080D70 File Offset: 0x0007EF70
		public static bool GetMouseButtonUp(int button)
		{
			return !GameController.Instance.paused && GameController.Instance.view.mode != MainView.Mode.Edit && Input.GetMouseButtonUp(button);
		}
	}
}
